﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class hoadonVO
    {
        public string MaHd { get; set; }
        public string Kh { get; set; }
        public string GiaHh { get; set; }
        public string Nv { get; set; }
        public DateTime Ngay { get; set; }
        public hoadonVO hoadonIDataReader(IDataReader dr)
        {
            hoadonVO obj = new hoadonVO();
            obj.MaHd = (dr["mahd"] is DBNull) ? string.Empty : dr["mahd"].ToString();
            obj.GiaHh = (dr["giahh"] is DBNull) ? string.Empty : dr["giahh"].ToString();
            obj.Kh = (dr["kh"] is DBNull) ? string.Empty : dr["kh"].ToString();
            obj.Nv = (dr["nv"] is DBNull) ? string.Empty : dr["nv"].ToString();
            return obj;
        }
    }
}
